package com.atguigu.lease.common.exception;

import com.atguigu.lease.common.result.ResultCodeEnum;
import lombok.Data;
@Data
public class ReleaseException extends RuntimeException{
    private ResultCodeEnum resultCodeEnum;

    public ReleaseException(String message) {
        super(message);
    }

    public ReleaseException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.resultCodeEnum=resultCodeEnum;
    }
}
